<%--
  Created by IntelliJ IDEA.
  User: dzw
  Date: 2018/3/20
  Time: 18:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<table class="table table-bordered table-condensed">
  <thead>
  <tr>
    <td colspan="2">统计项</td>
    <td>人数</td>
    <td>比例</td>
  </tr>
  <tr>
    <td rowspan="${fn:length(list)}"><a href="javascript:void(0)" onclick="toStatistics3('natureAll')">政治面貌-全区</a></td>

    <c:forEach items="${list}" var="item" varStatus="index">
    <c:if test="${index.index!=0}"><tr></c:if>
      <td><a href="javascript:void(0)" onclick="toStatistics3('natureAll')">${item.natureName}</a></td>
      <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics3('natureAll')">${item.natureCount}</a></td>
      <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics3('natureAll')">${item.bili}</a></td>
    </tr>
    </c:forEach>
  </tr>
  <%--<tr>--%>
    <%--<td colspan="2"><a href="javascript:void(0)" onclick="toStatistics3('natureAll')">合计</a></td>--%>
    <%--<td class="text-right"><a href="javascript:void(0)" onclick="toStatistics3('natureAll')">${allCount}</a></td>--%>
    <%--<td class="text-right">&nbsp;</td>--%>
  <%--</tr>--%>
  </thead>
</table>

<script>
  //进入 统计图页面
  function toStatistics3(urlName){
    loadURL("<%=path%>/com/dirStat/"+urlName,$("#s3"));
  }
</script>